home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / CDOS10.ARJ / STRFCTS.H < prev    next >
C/C++ Source or Header  |  1992-07-07  |  3KB  |  88 lines

  1. #if !defined (STRFCTS)            /* Prevents multiple declarations errors */
  2. #define STRFCTS
  3.  
  4.  
  5. /*----- Library Header Files ----------------------------------------------*/
  6.  
  7. #include <stdio.h>
  8.  
  9.  
  10. /*----- Prototype ---------------------------------------------------------*/
  11.  
  12. size_t far str_len                       /* Returns the length of a string */
  13.  
  14. ( char huge *string ) ;                            /* Huge ptr to a string */
  15.  
  16.  
  17. /*----- Prototype ---------------------------------------------------------*/
  18.  
  19. char huge * far str_cpy                  /* Copies one string into another */
  20.  
  21. ( char huge *dest,                                    /* Destination array */
  22.   char huge *src                                          /* Source string */
  23. ) ;
  24.  
  25.  
  26. /*----- Prototype ---------------------------------------------------------*/
  27.  
  28. int far str_cmp                          /* Compares one string to another */
  29.  
  30. ( char huge *string1,                                      /* First string */
  31.   char huge *string2                                      /* Second string */
  32. ) ;
  33.  
  34.  
  35. /*----- Prototype ---------------------------------------------------------*/
  36.  
  37. int far str_icmp        /* Case insensitive compares one string to another */
  38.  
  39. ( char huge *string1,                                      /* First string */
  40.   char huge *string2                                      /* Second string */
  41. ) ;
  42.  
  43.  
  44. /*----- Prototype ---------------------------------------------------------*/
  45.  
  46. void far str_toupper                 /* Sets chars in string to upper case */
  47.  
  48. ( char huge *string ) ;                            /* Huge ptr to a string */
  49.  
  50.  
  51. /*----- Prototype ---------------------------------------------------------*/
  52.  
  53. void far str_tolower                 /* Sets chars in string to lower case */
  54.  
  55. ( char huge *string ) ;                            /* Huge ptr to a string */
  56.  
  57.  
  58. /*----- Prototype ---------------------------------------------------------*/
  59.  
  60. void far str_pastoc                /* Converts a pascal string to c format */
  61.  
  62. ( char huge *string ) ;                                   /* Ptr to string */
  63.  
  64.  
  65. /*----- Prototype ---------------------------------------------------------*/
  66.  
  67. void far str_ctopas                /* Converts a c string to pascal format */
  68.  
  69. ( char huge *string ) ;                                   /* Ptr to string */
  70.  
  71.  
  72. /*----- Prototype ---------------------------------------------------------*/
  73.  
  74. void far str_trim                    /* Remove leading and trailing spaces */
  75.  
  76. ( char huge *string ) ;                                   /* Ptr to string */
  77.  
  78.  
  79. /*----- Prototype ---------------------------------------------------------*/
  80.  
  81. void far str_invnames                       /* Invert first and last names */
  82.  
  83. ( char huge *string ) ;                                   /* Ptr to string */
  84.  
  85.  
  86. /*----- End Header File ---------------------------------------------------*/
  87.  
  88. #endif